/*jslint vars: true, forin: true, sloppy: true */
/*global angular, ocDialog, DialogManager, DialogFactory */
ocDialog.directive('ocUpload', function () {
	/*return {
		template:
			'<label class="oc-upload" for="file">点击上传' + 
				'<input type="file" name="file" id="file" value="点击上传" />' +
			'</label>',
		restrict: 'E',
		replace: true
	};*/
	return {
		template:
			'<div class="oc-upload">点击上传' + 
				'<label for="file">' +
					'<input type="file" name="file" id="file" />' + 
				'</label>' +
			'</div>' ,
		restrict: 'E',
		replace: true
	};
});
